package com.example.jserrorresolver.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sourcemap")
public class SourceMapProperties {
    private String directory = "./sourcemaps";
    private String nodeScriptPath = "classpath:sourcemap-resolver.js";
    private String nodeExecutablePath = "node";

    // Getters and Setters
    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public String getNodeScriptPath() {
        return nodeScriptPath;
    }

    public void setNodeScriptPath(String nodeScriptPath) {
        this.nodeScriptPath = nodeScriptPath;
    }

    public String getNodeExecutablePath() {
        return nodeExecutablePath;
    }

    public void setNodeExecutablePath(String nodeExecutablePath) {
        this.nodeExecutablePath = nodeExecutablePath;
    }
}
